package com.umxwe.kill.core.domain;

public class ResultBuilder {
    public static <T> Result<T> success(T data) {
        return new Result<T>(data);
    }

    public static <T> Result<T> paramError(String message) {
        return new Result<T>(ResultCode.PARAMS_ERROR, message);
    }

    public static <T> Result<T> exceptionError(String message) {
        return new Result<T>(ResultCode.EXCEPTION_ERROR, message);
    }
}
